<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>transition-property 属性值</title>
		<style>
			div {
				width: 100px;
				height: 100px;
				background: red;
				opacity: 1;

				transition-property: width, height, background, opacity;
				transition-duration: 2s;

				/* Safari */
				/* -webkit-transition-property: width, height, background, opacity;
				-webkit-transition-duration: 2s; */
			}

			div:hover {
				width: 300px;
				height: 300px;
				background: gold;
				opacity: 0.5;
			}
		</style>
	</head>
	<body>
		

		<div>transition-property 属性值</div>

		<p>将鼠标移动至元素上查看过渡效果.</p>
	</body>
</html>
